<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdCustUserAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{sdCustUserAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Cust User Addr"/>

	<ui:define name="header">
		Sd Cust User Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdCustUserAddrBean.id}">
				Edit existing Sd Cust User Addr
			</c:when>
			<c:otherwise>
				Create a new Sd Cust User Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrSdCust" value="Sd Cust:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdCustUserAddrBeanSdCustUserAddrSdCust" value="#{sdCustUserAddrBean.sdCustUserAddr.sdCust}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrSdCust" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdCustUserAddrBeanSdCustUserAddrSysAddrType" value="#{sdCustUserAddrBean.sdCustUserAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdCustUserAddrBeanSdCustUserAddrSysAddr01" value="#{sdCustUserAddrBean.sdCustUserAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrNo" value="Cust User Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrNo" maxLength="20" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrNo}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMoo" value="Cust User Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMoo" maxLength="10" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrMoo}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrSoi" value="Cust User Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrSoi" maxLength="100" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrSoi}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoad" value="Cust User Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoad" maxLength="100" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrRoad}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrBuilding" value="Cust User Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrBuilding" maxLength="100" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrBuilding}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFloor" value="Cust User Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFloor" maxLength="50" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrFloor}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoom" value="Cust User Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoom" maxLength="50" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrRoom}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrName01" value="Cust User Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrName01" maxLength="100" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrName01}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPostcode" value="Cust User Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPostcode" maxLength="20" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrPostcode}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPhoneNo" value="Cust User Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPhoneNo" maxLength="20" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrPhoneNo}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFaxNo" value="Cust User Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFaxNo" maxLength="20" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrFaxNo}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMobileNo" value="Cust User Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMobileNo" maxLength="20" value="#{sdCustUserAddrBean.sdCustUserAddr.custUserAddrMobileNo}"/>
					<h:message for="sdCustUserAddrBeanSdCustUserAddrCustUserAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdCustUserAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdCustUserAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdCustUserAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdCustUserAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>